<template>
    <div>
        <h1>入党申请人公示</h1>
        <ul>
            <il v-for="stu in appliers">{{ stu.name }}</il>
        </ul>
    </div>
</template>


<script>
import { ref, computed } from 'vue'
export default {
    name: 'Publicity',
    components: {
    },
    setup() {
        const students = [
            { name: "张三", isApply: true, is18: true },
        ]
        const appliers = computed(() => {
            console.log("计算属性触发")
            return students.filter(stu => stu.isApply & stu.is18)
        })
        return
        {
            students,
            appliers
        }
    }
}
</script>
    

<style></style>